<!DOCTYPE html>
<html lang="en">
<head>
    {include file='public:head'}
    <style>
        .top-nav{
            overflow: hidden;
            height: 100%;
        }
        .top-nav .item{
            margin-right: 1px;
            color: #999;
            display: block;
            float: left;
            padding: 5px 18px;
            font-size: 13px;
            transition: 0.25s padding;
        }
        .top-nav .item.on,.top-nav .item:hover{
            padding: 1px 18px;
            color: #fff;
            background: linear-gradient(to bottom ,#FE5667,#FE9D4C);
        }
    </style>
</head>
<body>
<header>
    <a class="logo pull-left">雄鹰杯管理</a>
    <div class="top-nav  pull-left">
        <a class="item {$page_tag=='home'?'on':''}" href="/admin/index/index">网站</a>
        <a class="item {$page_tag=='view'?'on':''}" href="/admin/view_block/index">内容</a>
        <a class="item {$page_tag=='reg'?'on':''}" href="/admin/register_act/index">报名</a>
        <a class="item {$page_tag=='sys'?'on':''}" href="/admin/system/index">系统</a>
    </div>
    <div class="pull-right" style="margin-right: 10px;">
        <i class="fa fa-user"></i> {$admin_info.username}
        <a href="/admin/index/logout">注销</a>
    </div>
</header>
<div class="page">
    <div class="page-title">{$page_title|default='雄鹰杯'}<small>{$page_desc|default='后台内容管理系统'}</small></div>
    <div class="page-content">
        {if condition="$sub_menu"}
        <div class="ver-nav">
            {foreach $sub_menu  as $key => $item}
            <a class="item {$key==$action_name?'on':''}" href="{$item.url}">{$item.title}</a>
            {/foreach}
        </div>
        {/if}
        {__CONTENT__}
    </div>
</div>
<footer>
    版权所有 © 雄鹰杯大赛
</footer>
</body>
</html>